package com.webbei.Backstage.action;

import org.json.simple.JSONObject;

import com.webbei.Backstage.service.BackstateSer;

public class ChangePosition {
	private int left;
	private int top;
	private int width;
	private int height;
	private int id;
	private BackstateSer bao;
	
	public String execute(){
		System.out.println("changePosition...."+id);
		JSONObject json = new JSONObject();
		json.put("left",left );
		json.put("top",top );
		json.put("width",width );
		json.put("height",height );
		bao.changePosition(json.toJSONString(),id);
		return "success";
	}
	
	public int getLeft() {
		return left;
	}
	public void setLeft(int left) {
		this.left = left;
	}
	public int getTop() {
		return top;
	}
	public void setTop(int top) {
		this.top = top;
	}
	public int getWidth() {
		return width;
	}
	public void setWidth(int width) {
		this.width = width;
	}
	public int getHeight() {
		return height;
	}
	public void setHeight(int height) {
		this.height = height;
	}
	public void setBao(BackstateSer bao) {
		this.bao = bao;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}
	

}
